
/* rxd 快捷方式 */
const initialState = {
    list:['aa',22,33],
    str:""
}
/* { type, payload } 是一个action 传值的结构  */
export default (state = initialState, { type, payload }) => {
    switch (type) {
    case "add":
        const { list } = state
        list.push(payload)
        return { ...state,str:""}
    default:
        return state
    }
}
